<?php

    /**
     * This file is part of the Intelligencer package.
     * For the full copyright and license, please view the LICENSE
     * file that was distributed with this source code.
     * 
     * @author      drapeko <roman.drapeko@gmail.com>
     * @copyright   Roman Drapeko <roman.drapeko@gmail.com>, 2009 - present
     */

    /**
     * Rules are used by itRulesIntelligencer. This is an abstract class.
     * @author drapeko
     */
    abstract class itRules {
        
        protected $intelligencer = null;
        
        /**
         * Sets the Intelligencer that uses these rules
         * 
         * @param itIntelligencer $i
         * @return itRules itself
         */
        public function setIntelligencer(itIntelligencer $i) {
            $this->intelligencer = $i;
            return $this;
        }
        
        /**
         * Returns the Intelligencer that uses these rules
         * @return itIntelligencer
         */
        public function getIntelligencer() {
            return $this->intelligencer;
        }
    }
    
?>